import React, { Component } from 'react';
import Index from './components/page/Index'
import './App.css';
import {Switch , Route} from 'react-router-dom'

class App extends Component {
  constructor(){
    super()
    this.state={
      isAside : true
    }
  }
  render() {
    return (
      <div>
         <Switch>
           <Route path='/' component={Index}></Route>
         </Switch>
         <div className="bigaside">
          <div className="aside">
                这是侧边栏
          </div>
         </div>
      </div>
    );
  }
  componentDidMount(){
    // this.$axios.get("/api/related/playlist?id=1").then(res=>{
    //   console.log(res.data)
    // })
    // this.$axios.get("/api/personalized/newsong").then(res=>{
    //   console.log(res.data)
    // })
  } 
}

export default App;
